/**
 * 游戏中涉及到一些全局数据
 * 单例
 */


export enum GameType {
    finddifference_zhaobutong = 7,       //图片模式找不同,找不合理 一张图
}

export enum HeroType {
    hero = 0,       //英雄
    ding = 1        //大鼎
}

export default class PlayData {
    public static _instance: PlayData = null

    openId = null
    aixinnum = 0
    gameType: GameType = GameType.finddifference_zhaobutong
    heroType: HeroType = HeroType.hero
    checkoutNum = 0

    shareGameGetItem = 2 //分享游戏获得道具次数
    isshare = false

    userInfo = {
        hightScore: 0,
        icon: '',
        openid: '',
        name: ''
    }
    ispause = !1


    public static get Instance() {
        if (this._instance == null) {
            this._instance = new PlayData()
        }
        return this._instance
    }

}
